package org.smr.ministore.service;

import org.smr.ministore.entities.Authority;
import org.blade.service.base.BaseService;
import org.blade.service.base.BaseBatchService;
import org.blade.service.base.PaginationQueryService;

import java.util.List;

/**
 * @author blade
 *
 */
public interface AuthorityService extends BaseService<Long, Authority>,
                                        BaseBatchService<Long, Authority>,
                                        PaginationQueryService<Long, Authority> {

    /**
     * 根据父id 与 类型查询
     * @param parentId
     * @param type
     * @return
     */
    public List<Authority> getByParentAndType( Long parentId, Integer  type );

}
